import Index from "@/views/Index.vue";
import Login from "@/views/Login.vue";
import Register from "@/views/Register.vue";
import ForgotPassword from "@/views/ForgotPassword.vue";
// import StockDetail from "@/views/stock/StockDetail.vue";
// import DepositList from "@/views/deposit/DepositList.vue";
import DepositPage from "@/views/deposit/DepositPage.vue";
import WithdrawPage from "@/views/deposit/WithdrawPage.vue";
import DepositRecord from "@/views/deposit/DepositRecord.vue";
import WithdrawRecord from "@/views/deposit/WithdrawRecord.vue";
import Transfer from "@/views/deposit/Transfer.vue";
import PersonalInfomation from "@/views/user/PersonalInfomation.vue";
import SecurityAndPrivacy from "@/views/user/SecurityAndPrivacy.vue";
import FundAccount from "@/views/account/FundAccount.vue";
import StockAccount from "@/views/account/StockAccount.vue";
// 修改登录密码的邮箱验证页
import ChangeLoginPasswordVerifyCode from '@/views/user/ChangeLoginPasswordVerifyCode.vue';
// 修改资金密码的邮箱验证页
import ChangeFundPasswordVerifyCode from '@/views/user/ChangeFundPasswordVerifyCode.vue';
// 修改邮箱的旧邮箱验证页
import VerifyOldEmailCode from '@/views/user/VerifyOldEmailCode.vue';
// 修改邮箱的新邮箱验证页
import VerifyNewEmailCode from '@/views/user/VerifyNewEmailCode.vue';

// 修改登录密码页面
import ChangeLoginPassword from '@/views/user/ChangeLoginPassword.vue';
// 修改资金密码页面
import ChangeFundPassword from '@/views/user/ChangeFundPassword.vue';
// 修改邮箱 输入新邮箱页面
import NewEmailSubmit from "@/views/user/NewEmailSubmit.vue";

// 子路由
import { tabbar_list } from "@/router/tabbar.js";

export const routes = [
    { path: '/',                           name: 'index',                            component: Index, redirect: '/tabbar/home', children: tabbar_list },
    { path: '/login',                      name: 'login',                            component: Login },
    { path: '/register',                   name: 'register',                         component: Register },
    { path: '/forgot',                     name: 'forgot',                           component: ForgotPassword },
    // { path: '/stock/detail',               name: 'stock_detail',                     component: StockDetail },
    // { path: '/deposit/list',               name: 'deposit_list',                     component: DepositList },
    { path: '/deposit/deposit',            name: 'deposit',                          component: DepositPage },
    { path: '/deposit/withdraw',           name: 'withdraw',                         component: WithdrawPage },
    { path: '/deposit/deposit_record',     name: 'deposit_record',                   component: DepositRecord },
    { path: '/deposit/withdraw_record',    name: 'withdraw_record',                  component: WithdrawRecord },
    { path: '/deposit/transfer',           name: 'transfer',                         component: Transfer },
    { path: '/user/personal_infomation',   name: 'personal_infomation',              component: PersonalInfomation },
    { path: '/user/security_and_privacy',  name: 'security_and_privacy',             component: SecurityAndPrivacy },
    { path: '/user/fund_account',          name: 'fund_account',                     component: FundAccount },
    { path: '/user/stock_account',         name: 'stock_account',                    component: StockAccount },
    { path: '/verify/login_password',      name: 'change_login_password_verifyCode', component: ChangeLoginPasswordVerifyCode },
    { path: '/verify/fund_password',       name: 'change_fund_password_verifyCode',  component: ChangeFundPasswordVerifyCode },
    { path: '/verify/verify_old_email',    name: 'verify_old_email',                 component: VerifyOldEmailCode },
    { path: '/verify/verify_new_email',    name: 'verify_new_email',                 component: VerifyNewEmailCode },
    { path: '/user/change_login_password', name: 'change_login_password',            component: ChangeLoginPassword },
    { path: '/user/change_fund_password',  name: 'change_fund_password',             component: ChangeFundPassword },
    { path: '/user/new_email_submit',      name: 'new_email_submit',                 component: NewEmailSubmit },
];